import { BrowserModule } from '@angular/platform-browser';
import { NgModule, InjectionToken } from '@angular/core';


import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { NZ_LOCALE, enUS } from 'ng-zorro-antd';
import { AppComponent } from './app.component';


import { LayoutModule } from './layout/layout.module'
import { RoutesModule } from './router/routers.module';

import { SharedModule } from './shared/shared.module';

import { StoreModule , ActionReducerMap} from '@ngrx/store';
//import { store } from './ngrx/layout/reducer';

//import { reducers } from './feature.module/feature.module'
import { reducers,featureBReducer } from './feature.module/reducers'
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    LayoutModule,
    RoutesModule,
    SharedModule,
    StoreModule.forRoot(featureBReducer),
    StoreModule.forFeature('aaaa', reducers),
    StoreDevtoolsModule.instrument({
      maxAge: 25, // Retains last 25 states
    })
    //StoreModule.forRoot( FeatureModule )
    //StoreModule.forRoot( store )
    //StoreModule.forRoot( {isCollapse: reducers} )
  ],
  providers   : [ { provide: NZ_LOCALE, useValue: enUS } ], // 这里设置当前全局使用的语言包
  bootstrap: [AppComponent]
})
export class AppModule { }
